using Admin2025.Application.Services;
using Microsoft.Extensions.DependencyInjection;

namespace Admin2025.Application;

public static class ServiceCollectionExtenstion
{
  // 相当于给IServiceCollection这个类型 挂载了一个方法
  public static IServiceCollection AddApplication(this IServiceCollection service)
  {
    service.AddScoped(typeof(AuthService));

    return service;
  }
}